<tagLib name="cx,html" />
<div class="logcontent">
<p id="tit">{$post.post_title|Input::forShow}</p>
<if condition="$post['post_type'] eq 'post'">
<div style="height: 20px;">
	<div class="floatleft"><a href="{:url($post['slug'],'Category')}" title="显示{$post.name|Input::forTag}的所有日志" rel="category">{$post.name|Input::forShow}</a></div>
	<div class="floatright">{$post.post_date|Input::forShow}</div>
</div>
</if>
<div><span style="font-weight: bold">Tags: </span>{$tags}</div>
<div class="log_con">
	{~apply_action("before_post")}
	{$post.post_content|apply_filter='content_filter',###}
	<div id="attach_list">
		<if condition="count($attachList) gt 0">
		<h3>附件列表</h3>
		<volist name="attachList" id="attach">
		<div>{$attach}</div>
		</volist>
		</if>
	</div>
	{~apply_action("after_post")}
	<if condition="Session::get(C('USER_AUTH_KEY')) eq $post['post_author']">
	<a href="{$options.siteurl}/admin.php?s=/Blog/post/ID/{$post.ID}" title="编辑日志">Edit</a><br />
	</if>
	<div class="floatleft">
	<if condition="$prePostVo">
	&laquo; <a href="{:blogurl($prePostVo)}">{$prePostVo.post_title|Input::forShow}</a>
	</if>
	</div>
	<div class="floatright">
	<if condition="$nextPostVo">
	<a href="{:blogurl($nextPostVo)}">{$nextPostVo.post_title|Input::forShow}</a> &raquo;
	</if>
	</div>
	<br />
</div>
{~apply_action("before_comment")}
<p><b>{$post.comment_count} Responses to &#8220;{$post.post_title|Input::forShow}&#8221;</b></p>
<if condition="$post['ping_status'] eq 'open' and $options['default_ping_status'] eq 'open'">
<script language="javascript">
function CopyTrackBack(text, alertmsg){
	if(window.clipboardData) {
		window.clipboardData.setData('Text', text);
		alert(alertmsg);
	} else if(prompt('使用 Ctrl+C 复制到剪贴板', text)) {
		alert(alertmsg);
	}
}
contentDivClass = "log_con";
</script>
<p>点击<a href="javascript:void(0)" onclick="CopyTrackBack('http://{$Think.server.HTTP_HOST}{:url('trackback','Comment','',APP_NAME,array('ID'=>$post['ID']))}','引用通告地址已经复制到剪贴板')">这里</a>将引用通告地址复制到剪贴板</p>
</if>
<div id="com_list">
	<ul>
	<volist name="post['commentList']" id="comment">
		<li id="comment-{$comment.comment_ID}">
		<if condition="$comment['comment_approved'] eq '1'">
			<if condition="empty($comment['comment_author_url'])">
			{$comment.comment_author|Input::forShow}
			<else />
			<a href="{$comment.comment_author_url}" target="_blank">{$comment.comment_author|Input::forShow}</a>
			</if>
		 {$comment.comment_date}
		<p>{$comment.comment_content|Input::forShow}</p>
		<else />
			未审核的评论
		</if>
		</li>
	</volist>
	</ul>
</div><br>
<if condition="$post['comment_status'] eq 'open' and $options['default_comment_status'] eq 'open'">
	<h3 id="respond">发表评论</h3>
	<form action="{:url('post','Comment')}" method="post" id="commentform">
	<p><input type="text" name="comment_author" id="author" value="" size="22" tabindex="1" />
	<label for="author"><small>名称（必填）</small></label></p>
	<p><input type="text" name="comment_author_email" id="email" value="" size="22" tabindex="2" />
	<label for="email"><small>电子邮箱（不公开）（必填）</small></label></p>
	<p><input type="text" name="comment_author_url" id="url" value="" size="22" tabindex="3" />
	<label for="url"><small>网址</small></label></p>
	<script language="javascript">
	function fleshVerify() {
	   var timenow = new Date().getTime();
	   document.getElementById("verifyImg").src="{:url('verify','Blog','',APP_NAME,array('h'=>'1','ts'=>'"+timenow+"'))}";
	}
	</script>
	<p><input type="text" name="verify" id="verify" style="width:50px" size="5" tabindex="4" /> <img style="margin-bottom:-6px;*margin-bottom:-3px" class="attachIcon" id="verifyImg" src="{:url('verify','Blog')}" onclick="fleshVerify()" style="padding:0;" /><label for="verify"><small> 验证码 （必填） 点击图片刷新验证码</small></label></p>
	<p><textarea name="comment_content" id="comment" cols="60" rows="10" tabindex="4"></textarea></p>
	<p><input name="submit" type="submit" id="submit" tabindex="5" value="提交评论" />
	<input type="hidden" name="comment_post_ID" value="{$post.ID}" /><br /><span id="infoSpan"></span>
	</p>
	</form>
</if>
</div>